package com.indexingsystem.system.service.impl;

import com.indexingsystem.boss.Vo.ExportIndexingProductReqVo;
import com.indexingsystem.boss.Vo.GetIndexingExportReqVo;
import com.indexingsystem.boss.Vo.GetIndexingExportResVo;
import com.indexingsystem.boss.admin.mapper.IdxExportIndexingProductMapper;
import com.indexingsystem.boss.entity.IdxExportIndexingProduct;
import com.indexingsystem.system.service.IdxExportIndexingProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


//导出产品标引结果
@Service
public class IdxExportIndexingProductServiceImpl implements IdxExportIndexingProductService {
    @Resource
    private IdxExportIndexingProductMapper idxExportIndexingProductMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        // TODO Auto-generated method stub
        return idxExportIndexingProductMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(IdxExportIndexingProduct record) {
        // TODO Auto-generated method stub
        return idxExportIndexingProductMapper.insert(record);
    }

    @Override
    public int insertSelective(IdxExportIndexingProduct record) {
        // TODO Auto-generated method stub
        return idxExportIndexingProductMapper.insertSelective(record);
    }

    @Override
    public int insertSelectiveByReq(ExportIndexingProductReqVo record) {
        return idxExportIndexingProductMapper.insertSelectiveByReq(record);
    }

    @Override
    public IdxExportIndexingProduct selectByPrimaryKey(String id) {
        // TODO Auto-generated method stub
        return idxExportIndexingProductMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(IdxExportIndexingProduct record) {
        // TODO Auto-generated method stub
        return idxExportIndexingProductMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(IdxExportIndexingProduct record) {
        // TODO Auto-generated method stub
        return idxExportIndexingProductMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(IdxExportIndexingProduct record) {
        // TODO Auto-generated method stub
        return idxExportIndexingProductMapper.updateByPrimaryKey(record);
    }

    @Override
    public int selectCountByKeys(List<String> ids) {

        return idxExportIndexingProductMapper.selectCountByKeys(ids);
    }

    @Override
    public List<GetIndexingExportResVo> getExportIndexingList(GetIndexingExportReqVo reqVo) {
        return idxExportIndexingProductMapper.selectSelective(reqVo);
    }


}
